FROM debian:13.1-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ARG RELEASE
ARG VERSION
ENV TZ=Asia/Shanghai
ENV JAVA_HOME=/usr/local/${VERSION}
ENV PATH=$JAVA_HOME/bin:$PATH
# 标准JavaSE的Standard标准版
ADD bellsoft-jdk${RELEASE}-linux-amd64.tar.gz /usr/local/
# 精简JDK的Lite版
#ADD bellsoft-jdk${RELEASE}-linux-amd64-lite.tar.gz /usr/local/
WORKDIR /usr/local/
CMD ["java","-version"]

# https://bell-sw.com/pages/downloads/#jdk-8-lts
# 标准版
# JAVA8
# docker build --build-arg RELEASE=8u472+9 --build-arg VERSION=jdk8u472 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-8u472 .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-8u472
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-8u472
# JAVA11
# docker build --build-arg RELEASE=11.0.29+10 --build-arg VERSION=jdk-11.0.29 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-11.0.29 .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-11.0.29
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-11.0.29
# JAVA17
# docker build --build-arg RELEASE=17.0.17+11 --build-arg VERSION=jdk-17.0.17 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-17.0.17 .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-17.0.17
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-17.0.17
# JAVA21
# docker build --build-arg RELEASE=21.0.9+11 --build-arg VERSION=jdk-21.0.9 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-21.0.9 .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-21.0.9
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-21.0.9
# JAVA25
# docker build --build-arg RELEASE=25.0.1+11 --build-arg VERSION=jdk-25.0.1 -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-25.0.1 .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-25.0.1
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-25.0.1

# Lite版
# JAVA8
# docker build --build-arg RELEASE=8u472+9 --build-arg VERSION=jdk8u472-lite -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-8u472-lite .
# docker run --rm registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-8u472-lite
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-8u472-lite
# JAVA11
# docker build --build-arg RELEASE=11.0.29+10 --build-arg VERSION=jdk-11.0.29-lite -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-11.0.29-lite .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-11.0.29-lite
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-11.0.29-lite
# JAVA17
# docker build --build-arg RELEASE=17.0.17+11 --build-arg VERSION=jdk-17.0.17-lite -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-17.0.17-lite .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-17.0.17-lite
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-17.0.17-lite
# JAVA21
# docker build --build-arg RELEASE=21.0.9+11 --build-arg VERSION=jdk-21.0.9-lite -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-21.0.9-lite .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-21.0.9-lite
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-21.0.9-lite
# JAVA25
# docker build --build-arg RELEASE=25.0.1+11 --build-arg VERSION=jdk-25.0.1-lite -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-25.0.1-lite .
# docker run --rm  registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-25.0.1-lite
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/bellsoft:jdk-25.0.1-lite